package com.bootdo.system.domain;

import com.bootdo.common.persistence.DataEntity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 区域表
 * @author liangxiong
 * @email 1992lcg@163.com
 * @date 2018-06-29 09:39:36
 */
public class AreaDO extends DataEntity<AreaDO> {
	private static final long serialVersionUID = 1L;

	//父级编号
	private String parentId;
	//所有父级编号
	private String parentIds;
	//名称
	private String name;
	//排序
	private BigDecimal sort;
	//区域编码
	private String code;
	//区域类型
	private String type;
	//是否是叶子节点 "0":否; "1":是
	private String isLeaf;



	/**
	 * 设置：父级编号
	 */
	public void setParentId(String parentId) {
		this.parentId = parentId;
	}
	/**
	 * 获取：父级编号
	 */
	public String getParentId() {
		return parentId;
	}
	/**
	 * 设置：所有父级编号
	 */
	public void setParentIds(String parentIds) {
		this.parentIds = parentIds;
	}
	/**
	 * 获取：所有父级编号
	 */
	public String getParentIds() {
		return parentIds;
	}
	/**
	 * 设置：名称
	 */
	public void setName(String name) {
		this.name = name;
	}
	/**
	 * 获取：名称
	 */
	public String getName() {
		return name;
	}
	/**
	 * 设置：排序
	 */
	public void setSort(BigDecimal sort) {
		this.sort = sort;
	}
	/**
	 * 获取：排序
	 */
	public BigDecimal getSort() {
		return sort;
	}
	/**
	 * 设置：区域编码
	 */
	public void setCode(String code) {
		this.code = code;
	}
	/**
	 * 获取：区域编码
	 */
	public String getCode() {
		return code;
	}
	/**
	 * 设置：区域类型
	 */
	public void setType(String type) {
		this.type = type;
	}
	/**
	 * 获取：区域类型
	 */
	public String getType() {
		return type;
	}
	/**
	 * 设置：是否是叶子节点
	 */
	public String getIsLeaf() {
		return isLeaf;
	}
	/**
	 * 获取：是否是叶子节点
	 */
	public void setIsLeaf(String isLeaf) {
		this.isLeaf = isLeaf;
	}

	@Override
	public String toString() {
		return "AreaDO{" +
				"id='" + id + '\'' +
				", parentId='" + parentId + '\'' +
				", parentIds='" + parentIds + '\'' +
				", name='" + name + '\'' +
				", sort=" + sort +
				", code='" + code + '\'' +
				", type='" + type + '\'' +
				", createBy='" + createBy + '\'' +
				", createDate=" + createDate +
				", updateBy='" + updateBy + '\'' +
				", updateDate=" + updateDate +
				", remarks='" + remarks + '\'' +
				", delFlag='" + delFlag + '\'' +
				", isLeaf='" + isLeaf + '\'' +
				'}';
	}
}
